/**
 * Codeup 接口列表
 */
import { ENUM } from '../constants';

const codeupApimap = [
  {
    id: 'spa.path',
    url: '/portal/path_info',
    // name: 'spa path解析',
    noApiPrefix: true,
    noVersionPrefix: true,
    noErrorToast: true,
  },
  {
    id: 'introPointState.get',
    url: '/introPointState',
    // name: '查询用户引导点状态',
    version: ENUM.api_version.V4,
    noErrorToast: true,
  },
  {
    id: 'introPointState.set',
    url: '/introPointState?type={{{type}}}',
    // name: '设置用户引导点状态（post直接关闭）',
    method: 'post',
    version: ENUM.api_version.V4,
    noErrorToast: true,
  },
  {
    id: 'keys.list',
    url: '/user/keys',
  },
  {
    id: 'key.get',
    url: '/user/keys/{{id}}',
  },
  {
    id: 'keys.post',
    url: '/user/keys',
    method: 'post',
    noErrorToast: true,
  },
  {
    id: 'keys.del',
    url: '/keys/{{id}}',
    method: 'delete',
  },
  {
    id: 'users.authenticateToken',
    url: '/users/authenticate/token',
    method: 'put',
  },
  {
    id: 'projects.authorizedList',
    url: '/projects/authorized/list',
  },
  {
    id: 'projects.starredList',
    url: '/projects/starred/list',
  },
  {
    id: 'projects.personalList',
    url: '/projects/personal/list',
  },
  {
    id: 'projects.exploreList',
    url: '/projects/all',
  },
  {
    id: 'projects.namespace.my',
    url: '/namespaces/my',
    // name: '获取当前用户个人 namespace',
    noErrorToast: true,
  },
  {
    id: 'tbProject.linkedList',
    url: '/portal/api/v1/tbproject/{{tbProjectId}}/repos',
    // name: '获取tb已关联项目',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'tbProject.projectInfo',
    url: '/portal/api/v1/tbproject/{{tbProjectId}}',
    // name: '获取tb的项目名称',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'tbProject.unlink',
    url: '/portal/api/v1/tbproject/{{tbProjectId}}/repos/{{projectId}}',
    // name: 'tb取消关联project',
    method: 'delete',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'tbProject.create.project',
    url: '/portal/api/v1/tbproject/{{tbProjectId}}/repos',
    // name: 'tb创建project',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'tbProject.link',
    url: '/portal/api/v1/tbproject/{{tbProjectId}}/repos/link/batch',
    // name: 'tb关联project，支持多个',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  // /portal/api/v1/tbproject/{tbProjectId}/repos/search
  {
    id: 'tbProject.unLinkedList',
    url: '/portal/api/v1/tbproject/{{tbProjectId}}/repos/search',
    // name: 'tb获取未关联项目列表',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'projects.get',
    url: '/projects',
  },
  {
    id: 'projects.getAuthWriteList',
    url: '/projects/authWriteList',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.post',
    url: '/projects',
    method: 'post',
  },
  {
    id: 'projects.single.get',
    url: '/projects/{{id}}',
  },
  {
    id: 'projects.single.import.stop',
    url: '/projects/{{id}}/import/stop',
    // name: '停止导入',
    method: 'post',
  },
  {
    id: 'projects.single.init',
    url: '/projects/{{id}}/init',
    // name: '初始化空库',
    method: 'post',
  },
  {
    id: 'projects.single.import',
    url: '/projects/{{id}}/import',
    // name: '重新导入',
    method: 'post',
  },
  {
    id: 'projects.list.import',
    url: '/import/project/start',
    // name: '提交批量导入任务申请',
    method: 'post',
  },
  {
    id: 'projects.list.cancelImport',
    url: '/import/project/cancel?project_id={{projectId}}',
    // name: '取消导入任务',
    method: 'post',
  },
  {
    id: 'projects.list.stopImport',
    url: '/import/project/stop?project_id={{projectId}}',
    // name: '批量导入终止导入中的任务',
    method: 'post',
  },
  {
    id: 'projects.import.account.get',
    url: '/import/account',
    // name: '获取绑定三方库帐号',
    noErrorToast: true,
  },
  {
    id: 'projects.import.account.post',
    url: '/import/account',
    // name: '设置三方库绑定帐号',
    method: 'post',
  },
  {
    id: 'projects.import.account.aliyun.post',
    url: '/import/account',
    // name: '设置三方库绑定帐号',
    method: 'post',
    noErrorToast: true,
  },
  {
    id: 'projects.import.account.delete',
    url: '/import/account?platform_type={{platform_type}}',
    // name: '解绑三方库绑定帐号',
    method: 'delete',
  },
  {
    id: 'projects.import.sync',
    url: '/import/project/sync?platform_type={{platform_type}}&async={{async}}',
    // name: '三方代码库信息同步至Codeup接口',
    method: 'post',
  },
  {
    id: 'projects.import.list',
    url: '/import/project',
    // name: '查询导入代码库列表接口',
  },
  {
    id: 'user.tb.aliens',
    url: '/user/aliens',
    // name: '查询当前帐号在TB绑定的三方帐号',
    noErrorToast: true,
  },
  {
    id: 'user.tb.aliens.delete',
    url: 'https://account.teambition.com/api/aliens/{{alienId}}',
    // name: '在TB解绑三方帐号',
    method: 'delete',
    noApiPrefix: true,
  },
  {
    id: 'project.status.get',
    url: '/projects/{{id}}/status',
  },
  {
    id: 'projects.branches',
    url: '/projects/{{projectId}}/repository/branches',
  },
  {
    id: 'projects.all.branches.search',
    url: '/search/projects/{{id}}/branches/all',
  },
  {
    id: 'projects.overview.branches',
    url: '/projects/{{projectId}}/repository/branches/overview',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.branches.category',
    url: '/projects/{{projectId}}/repository/branches/category/{{category}}',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.branch',
    url: '/projects/{{projectId}}/repository/branches/{{branch}}',
  },
  {
    id: 'projects.branches.protected',
    url: '/projects/{{projectId}}/repository/branches/protect_branches?branch={{{branch}}}',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.tree',
    url: '/projects/{{projectId}}/repository/tree',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.blobs',
    url: '/projects/{{projectId}}/repository/blobs',
    type: 'html',
    headers: {
      Accept: 'text/plain',
    },
  },
  {
    id: 'projects.blobs.v4',
    // name: '获取文件v4接口，支持获取某2行之间的内容',
    url: '/projects/{{projectId}}/repository/blobs',
    version: ENUM.api_version.V4,
    // type: 'html',
    // headers: {
    //   Accept: 'text/plain',
    // },
  },
  {
    id: 'projects.testResult',
    url: '/projects/{{{repoPath}}}/test/{{commitId}}',
    // name: '获取测试结果',
  },
  {
    id: 'projects.commit.comments.get',
    url: '/projects/{{projectId}}/repository/commits/{{commitId}}/comments',
    // name: '获取commit评论',
  },
  {
    id: 'projects.commit.comments.post',
    url: '/projects/{{projectId}}/repository/commits/{{commitId}}/comments',
    method: 'post',
    // name: '发布commit评论',
  },
  {
    id: 'projects.commit.refs',
    url: '/projects/{{projectId}}/repository/commits/{{commitId}}/refs',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.submodule',
    url: '/projects/{{{projectId}}}/repository/submodule/{{sha}}',
    // name: '获取submodule',
  },
  {
    id: 'project.transfer',
    url: '/projects/{{id}}/settings/transfer',
    method: 'post',
  },
  {
    id: 'project.remove',
    url: '/projects/{{id}}',
    method: 'delete',
  },
  {
    id: 'project.delete',
    url: '/projects/{{id}}',
    method: 'delete',
  },
  {
    id: 'project.update',
    url: '/projects/{{id}}',
    method: 'put',
    // name: '更新库信息',
  },
  {
    id: 'project.archive',
    url: '/projects/{{id}}/settings/archive',
    method: 'put',
  },
  {
    id: 'project.unarchive',
    url: '/projects/{{id}}/settings/unarchive',
    method: 'put',
  },
  {
    id: 'project.protected_branch.set',
    url: '/projects/{{projectId}}/repository/branches/{{{branchName}}}/protect',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.protected_branch.unset',
    url: '/projects/{{projectId}}/repository/branches/{{{branchName}}}/unprotect',
    method: 'put',
  },
  {
    id: 'projects.blobsBase64',
    url: '/projects/{{projectId}}/repository/files',
  },
  {
    id: 'projects.render_type',
    url: '/projects/{{projectId}}/repository/blobs/{{{sha}}}/render_type',
    type: 'html',
    headers: {
      Accept: 'text/plain',
    },
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.general_info',
    url: '/projects/{{projectId}}/repository/blobs/{{{sha}}}/general_info',
    version: ENUM.api_version.V4,
    noErrorToast: true,
  },
  {
    id: 'projects.files.last_commit',
    url: '/projects/{{projectId}}/repository/files/last_commit',
  },
  {
    id: 'projects.files.last_commit_batch',
    url: '/projects/{{projectId}}/repository/files/last_commit/batch?sha={{{sha}}}',
    method: 'post',
  },
  {
    id: 'projects.files.new',
    url: '/projects/{{projectId}}/repository/files',
    method: 'post',
  },
  {
    id: 'projects.files.new.associateTask',
    // name: '带关联任务的新建文件',
    url: '/portal/api/v1/tbtask/create_file',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'projects.files.edit',
    url: '/projects/{{projectId}}/repository/files',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.files.edit.associateTask',
    // name: '带关联任务的编辑文件',
    url: '/portal/api/v1/tbtask/update_file',
    method: 'put',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'projects.files.delete',
    url: '/projects/{{projectId}}/repository/files?file_path={{{file_path}}}&commit_message={{{commit_message}}}&branch_name={{{branch_name}}}',
    method: 'delete',
  },
  {
    id: 'projects.files.delete.associateTask',
    // name: '带关联任务的删除文件',
    url: '/portal/api/v1/tbtask/delete_file?project_id={{{project_id}}}&task_ids={{{task_ids}}}&file_path={{{file_path}}}&commit_message={{{commit_message}}}&branch_name={{{branch_name}}}',
    method: 'delete',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'projects.files.blame',
    url: '/projects/{{projectId}}/repository/files/blame',
  },
  {
    id: 'projects.dirs.new',
    url: '/projects/{{projectId}}/repository/dirs',
    method: 'post',
  },
  {
    id: 'projects.empty_check',
    url: '/projects/{{projectId}}/repository/empty_check',
  },
  {
    id: 'projects.statistic',
    url: '/projects/{{projectId}}/statistic',
  },
  {
    id: 'projects.star',
    url: '/projects/{{projectId}}/star',
    method: 'post',
  },
  {
    id: 'projects.unstar',
    url: '/projects/{{projectId}}/unstar',
    method: 'post',
  },
  {
    id: 'projects.activities',
    url: '/projects/{{projectId}}/activities',
  },
  {
    id: 'groups.activities',
    url: '/groups/{{groupId}}/activities',
  },
  {
    id: 'projects.settings.edit',
    url: '/projects/{{id}}/settings',
    method: 'post',
  },
  {
    id: 'projects.settings.rename',
    url: '/projects/{{id}}/settings/rename',
    method: 'post',
  },
  {
    id: 'projects.protected_branches.list',
    url: '/projects/{{id}}/repository/branches/protect',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.enabled.deploy_keys',
    url: '/projects/{{id}}/keys/get_projects',
  },
  {
    id: 'project.check_deploy_keys',
    url: '/check_deploy_keys',
    // name: '检测用户是否配置deployKey',
  },
  {
    id: 'project.create.deploy_keys',
    url: '/projects/{{id}}/keys',
    method: 'post',
  },
  {
    id: 'enable.project.deploy_key',
    url: '/projects/{{projectId}}/keys/{{keyId}}/enable',
    method: 'post',
  },
  {
    id: 'projects.deploy_Keys.delete',
    url: '/projects/{{projectId}}/keys/{{keyId}}',
    method: 'DELETE',
  },
  {
    id: 'projects.deploy_Keys.disable',
    url: '/projects/{{projectId}}/keys/{{keyId}}/disable',
    method: 'post',
  },
  {
    id: 'authorized.deploy_keys',
    url: '/deploy_keys',
  },
  {
    id: 'project.is.forked',
    url: '/projects/fork/{{id}}/or/not',
  },
  {
    id: 'project.forked.source.project',
    url: '/projects/fork/{{id}}/source',
  },
  {
    id: 'projects.fork',
    url: '/projects/fork/{{id}}',
    method: 'post',
  },
  {
    id: 'project.commits',
    url: '/projects/{{projectId}}/repository/commits',
  },
  {
    id: 'project.commits_with_user',
    url: '/projects/{{projectId}}/repository/commits',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.commit.info',
    url: '/projects/{{projectId}}/repository/commits/{{sha}}',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.commit.diff',
    // name: '获取某次commit的diffs数组',
    url: '/projects/{{projectId}}/repository/commits/{{sha}}/diff',
  },
  {
    id: 'projects.commit.diff.noErrorToast',
    // name: '获取某次commit的diffs数组',
    url: '/projects/{{projectId}}/repository/commits/{{sha}}/diff',
    noErrorToast: true,
  },
  {
    id: 'projects.commit.compare',
    url: '/projects/{{projectId}}/repository/commits/compare',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.branches',
    url: '/projects/{{projectId}}/repository/branches/{{branch}}',
  },
  {
    id: 'project.branches.post',
    url: '/projects/{{projectId}}/repository/branches',
    method: 'post',
  },
  {
    id: 'project.branches.post.associateTask',
    // name: '带关联任务的创建分支',
    url: '/portal/api/v1/tbtask/create_branch',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.branches.delete',
    url: '/projects/{{projectId}}/repository/branches/{{{branch}}}',
    method: 'delete',
  },
  {
    id: 'project.tags',
    url: '/projects/{{projectId}}/repository/tags',
    version: ENUM.api_version.V4,
  },
  // v3为不分页的tags接口
  {
    id: 'project.allTags',
    url: '/projects/{{projectId}}/repository/tags',
  },
  {
    id: 'project.tags.post',
    url: '/projects/{{projectId}}/repository/tags',
    method: 'post',
  },
  {
    id: 'project.tags.delete',
    url: '/projects/{{projectId}}/repository/tags/{{{tagName}}}',
    method: 'delete',
  },
  {
    id: 'project.tags.get',
    url: '/projects/{{projectId}}/repository/tags/{{{tagName}}}',
  },
  {
    id: 'project.tags.release.post',
    url: '/projects/{{projectId}}/repository/tags/{{{tagName}}}/release',
    method: 'post',
  },
  {
    id: 'project.tags.release.put',
    url: '/projects/{{projectId}}/repository/tags/{{{tagName}}}/release',
    method: 'put',
  },
  {
    id: 'project.mr.list.get',
    url: '/projects/{{projectId}}/merge_requests',
  },
  {
    id: 'project.mr.post',
    // name: '新建mr',
    url: '/projects/{{projectId}}/merge_requests',
    method: 'post',
    version: ENUM.api_version.V4,
  },

  {
    id: 'project.mr.check_reviewer',
    url: '/projects/{{projectId}}/check_reviewer',
    // method: 'post',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.get',
    // name: '获取mr详情',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.put',
    // name: '修改mr',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}',
    method: 'put',
  },
  {
    id: 'project.mr.doMerge',
    // name: '合并mr',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/merge',
    method: 'put',
  },
  {
    id: 'project.mr.doMergeSync',
    // name: '合并mr（同步）',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/merge',
    method: 'put',
  },
  {
    id: 'project.mr.accept',
    // name: '评审通过，不合并',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/accept',
    method: 'put',
  },
  {
    id: 'project.mr.getCommits',
    // name: '获取MR的commits',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/commits',
  },
  {
    id: 'project.mr.getDiffs',
    // name: '获取MR的Diffs',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/changes',
  },
  {
    id: 'project.mr.inline_comments',
    // name: '获取mr行内评论',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/inline_comments',
  },
  {
    id: 'project.mr.common_comments',
    // name: '获取mr总体评论',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/common_comments',
  },
  {
    id: 'project.mr.comments.post',
    // name: '发表评论',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/comments',
    method: 'post',
  },
  {
    id: 'project.mr.comment.update',
    // name: '修改评论/草稿',
    url: '/projects/{{projectId}}/merge_requests/{{mrId}}/notes/{{noteId}}',
    method: 'put',
  },
  {
    id: 'project.mr.get_drafts',
    // name: '查询草稿',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/get_drafts',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.get_cr',
    // name: '查询评审关联的变更',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/cr',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.commit_history',
    // name: '获取commit提交历史',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/commits',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.commits.all',
    // name: '获取commit提交历史',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/commits/all',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.delete_draft',
    // name: '删除草稿',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/draft/{{id}}',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  {
    id: 'project.mr.post_drafts',
    // name: '提交所有草稿',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/drafts',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project.mr.mark_as_read',
    // name: '标记文件为已读',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/mark_as_read',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'project.mr.mark_as_unread',
    // name: '标记文件为未读',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/mark_as_unread',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'project.mr.delete_label',
    // name: '删除评论/草稿的标签关联关系',
    url: '/label/record/{{id}}/delete',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  {
    id: 'project.mr.save_label',
    // name: '新增标签',
    url: '/projects/{{projectId}}/save_label',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project.mr.update_notes_labels',
    // name: '更新讨论的标签字段',
    url: '/projects/{{projectId}}/merge_requests/{{mrId}}/notes/{{noteId}}/label_records',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'project.mr.get_labels',
    // name: '根据代码库ID查全部共有和私有的label列表',
    url: '/projects/{{projectId}}/get_labels',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.logs',
    // name: '获取mr操作日志',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/logs',
  },
  {
    id: 'project.mr.logs.summary',
    // name: '获取mr操作日志',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/summary_log',
  },
  {
    id: 'project.mr.logs.dynamics',
    // name: '获取mr动态',
    url: '/projects/{{projectId}}/merge_request/{{mergeRequestId}}/logs',
  },
  {
    id: 'project.mr.assignees.post',
    // name: '添加mr的评审人',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/assignees/{{userId}}',
    method: 'post',
  },
  {
    id: 'project.mr.assignees.delete',
    // name: '删除mr的评审人',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/assignees/{{userId}}',
    method: 'delete',
  },
  {
    id: 'project.mr.getPushRecords',
    // name: '获取mr的push区块',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/push_records',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.commits',
    // name: '获取mr的提交历史',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/commits',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.drafts.get',
    // name: '获取草稿',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/drafts',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.drafts.post',
    // name: '提交所有草稿',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/drafts',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project.mr.comments.get',
    // name: '获取Mr的评论',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/comments',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.commentOrDraft.post',
    // name: '提交MR的评论或者评论',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/comments',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project.mr.getPushRecordsChangesets',
    // name: '获取mr的push区块的changesets，即不包含diff内容的修改文件列表',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/push_record/changesets',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.getPushRecordsChangeTree',
    // name: '原接口的新封装，多包含整体改动行数、每个文件的评论数等信息',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/change_tree',
    version: ENUM.api_version.V4,
    noErrorToast: true,
  },
  {
    id: 'project.mr.getPushRecordsChangesetsDiff',
    // name: '根据changesets中的ref，获取diff内容',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/changeset/diff',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.p3cViolations',
    // name: '获取mr的p3c扫描结果',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/p3c/violations',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.workitem.get',
    // name: '获取mr关联的工作项',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/workitem',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.workitem.post',
    // name: 'mr关联工作项post',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/workitem',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project.mr.subscriber',
    // name: '获取mr的关注者',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/subscriber',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.subscriber.post',
    // name: '关注该mr',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/subscriber',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project.mr.subscriber.delete',
    // name: '取消关注该mr',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/subscriber',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  {
    id: 'project.mr.approve_status',
    // name: '获取新版mr未完成的任务详情',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/approve_status',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.upvote.get',
    // name: '获取赞的人列表',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/upvote',
  },
  {
    id: 'project.mr.upvote.post',
    // name: '本人点赞',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/upvote',
    method: 'post',
  },
  {
    id: 'project.mr.upvote.delete',
    // name: '本人取消赞',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/upvote',
    method: 'delete',
  },
  {
    id: 'project.mr.inline_issues',
    // name: '查询CR行内问题',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/inline_issues',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.builds',
    // name: '合并卡点展示接口',
    url: '/projects/{{projectId}}/merge_request/{{mrId}}/builds',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.inline_issues.feedback.post',
    // name: '针对行内问题、详情反馈',
    url: '/projects/{{projectId}}/inline_issue/feedback',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project.mr.inline_issues.feedback.delete',
    // name: '针对行内问题、详情反馈',
    url: '/projects/{{projectId}}/inline_issue/feedback?target_type={{{target_type}}}&target_id={{{target_id}}}&feedback={{{feedback}}}',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  {
    id: 'project.mr.standard_inline_check',
    // name: '代码库CR设置中的inline check查询接口',
    url: '/projects/{{projectId}}/standard_inline_check',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.standard_inline_check.put',
    // name: '代码库CR设置中的inline check修改接口',
    url: '/projects/{{projectId}}/standard_inline_check/{{standardInlineCheckId}}',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  {
    id: 'workitem.search',
    // name: '根据关键字查询工作项',
    url: '/workitem/search',
    version: ENUM.api_version.V4,
  },
  {
    id: 'p3c.getById',
    // name: '根据id获取p3c规则详情',
    url: '/p3c/{{id}}',
  },
  {
    id: 'project.web_hooks',
    url: '/projects/{{projectId}}/hooks',
  },
  {
    id: 'project.web_hooks.add',
    url: '/projects/{{projectId}}/hooks',
    method: 'post',
    contentType: 'application/json',
  },
  {
    id: 'project.web_hooks.delete',
    url: '/projects/{{projectId}}/hooks/{{webhookId}}',
    method: 'delete',
  },
  {
    id: 'project.web_hooks.get',
    url: '/projects/{{projectId}}/hooks/{{webhookId}}',
  },
  {
    id: 'project.web_hooks.edit',
    url: '/projects/{{projectId}}/hooks/{{webhookId}}',
    method: 'put',
    contentType: 'application/json',
  },
  {
    id: 'project.web_hooks.test',
    url: '/projects/{{projectId}}/hooks/{{webhookId}}/test',
    method: 'post',
  },
  {
    id: 'project.settings.merge_requests.get',
    url: '/projects/{{id}}/settings/merge_requests',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.settings.merge_requests.put',
    url: '/projects/{{id}}/settings/merge_requests',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  {
    id: 'groups.post',
    url: '/groups',
    method: 'post',
  },
  {
    id: 'groups.paginate',
    url: '/groups/paginate',
  },
  {
    id: 'groups.members.get',
    url: '/groups/{{groupId}}/members',
  },
  {
    id: 'groups.members.single.get',
    url: '/groups/{{groupId}}/members/{{userId}}',
  },
  {
    id: 'groups.members.delete',
    url: '/groups/{{groupId}}/members/{{userId}}',
    method: 'delete',
  },
  {
    id: 'group.leave',
    url: '/groups/{{groupId}}/leave',
    method: 'delete',
  },
  {
    id: 'groups.members.notification_level',
    url: '/groups/{{groupId}}/members/{{userId}}/notification_level',
  },
  {
    id: 'groups.members.edit',
    url: '/groups/{{groupId}}/members/{{userId}}',
    method: 'put',
  },
  {
    id: 'groups.subgroup.get',
    url: '/groups/{{groupId}}/subgroups',
  },
  {
    id: 'groups.all.subprojects',
    url: '/groups/all/authorized_projects',
    version: ENUM.api_version.V4,
  },
  {
    id: 'groups.authorized.subgroups',
    url: '/groups/all/groups_by_role',
    version: ENUM.api_version.V4,
  },
  {
    id: 'groups.single',
    url: '/groups/{{id}}',
  },
  {
    id: 'groups.activities',
    url: '/groups/{{groupId}}/activities',
  },
  {
    id: 'groups.all.activities',
    url: '/groups/{{groupId}}/activities',
    version: ENUM.api_version.V4,
  },
  {
    id: 'groups.details',
    url: '/groups/{{id}}/details',
  },
  {
    id: 'groups.update',
    url: '/groups/{{id}}',
    method: 'put',
  },
  {
    id: 'groups.remove',
    url: '/groups/{{id}}',
    method: 'delete',
  },
  {
    id: 'groups.mr.list.get',
    url: '/groups/{{groupId}}/merge_requests',
  },
  {
    id: 'mr.list.all',
    url: '/merge_requests',
  },
  {
    id: 'mr.list.created',
    url: '/merge_requests/created',
  },
  {
    id: 'mr.list.reviewed',
    url: '/merge_requests/reviewed',
  },
  {
    id: 'mr.list.cc',
    url: '/merge_requests/carbon_copy',
  },
  {
    id: 'mr.advanced_search',
    url: '/merge_requests/advanced_search',
    version: ENUM.api_version.V4,
  },
  {
    id: 'mr.ceiling.search',
    url: '/merge_requests/ceiling_search',
    version: ENUM.api_version.V4,
  },
  {
    id: 'mr.state_count',
    url: '/merge_requests/state_count',
    version: ENUM.api_version.V4,
  },
  {
    id: 'users.activities',
    url: '/users/activities',
  },
  {
    id: 'users.getByEmail',
    url: '/users/getByEmail',
  },
  {
    id: 'users.getSearchHistory',
    url: '/user/search_history',
    version: ENUM.api_version.V5,
  },
  {
    id: 'users.delSearchHistory',
    url: '/user/search_history?private_token={{private_token}}',
    version: ENUM.api_version.V5,
    method: 'delete',
  },
  {
    id: 'search.users',
    url: '/search/users',
  },
  {
    id: 'organization.repo.setting.get',
    url: '/organization/{{org_id}}/repo_setting',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.group.setting.get',
    url: '/organization/{{org_id}}/group_setting',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.alias.name.get',
    url: '/organization/{{orgId}}',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.verify',
    url: '/organization/verify',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.alias.name.update',
    url: '/organization/{{id}}',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'organization.admin.get',
    url: '/organization/{{org_id}}/admin',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.admin.post',
    url: '/organization/{{org_id}}/admin',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization.admin.delete',
    url: '/organization/{{org_id}}/admin/{{id}}',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  {
    id: 'organization.repo.setting.post',
    url: '/organization/{{id}}/repo_setting',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization.group.setting.post',
    url: '/organization/{{org_id}}/group_setting',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization.security.setting.get',
    url: '/organization/{{id}}/security_notify_setting',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.security.setting.put',
    url: '/organization/{{id}}/security_notify_setting/{{notify_id}}',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.security.notify.get',
    url: '/organization/{{id}}/security_notify',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.audit.log.get',
    url: '/organization/{{id}}/audit_log',
    version: ENUM.api_version.V4,
  },
  // organization webhooks接口
  {
    id: 'organization.web_hooks',
    url: '/organization/{{org_id}}/hooks',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.web_hooks.add',
    url: '/organization/{{org_id}}/hooks',
    method: 'post',
    contentType: 'application/json',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.web_hooks.delete',
    url: '/organization/{{org_id}}/hooks/{{webhookId}}',
    method: 'delete',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.web_hooks.get',
    url: '/organization/{{org_id}}/hooks/{{webhookId}}',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.web_hooks.edit',
    url: '/organization/{{org_id}}/hooks/{{webhookId}}',
    method: 'put',
    contentType: 'application/json',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.web_hooks.test',
    url: '/organization/{{org_id}}/hooks/{{webhookId}}/test',
    method: 'post',
    version: ENUM.api_version.V4,
  },
  // 安全通知代码库列表筛选接口
  {
    id: 'projects.security.notify.get',
    url: '/organization/{{org_id}}/security_notify/projects',
    version: ENUM.api_version.V4,
  },
  // 安全通知代码组列表筛选接口
  {
    id: 'groups.security.notify.get',
    url: '/organization/{{org_id}}/security_notify/groups',
    version: ENUM.api_version.V4,
  },
  // 审计代码库列表筛选接口
  {
    id: 'projects.audit.log.get',
    url: '/organization/{{org_id}}/audit_log/projects',
    version: ENUM.api_version.V4,
  },
  // 审计代码组列表筛选接口
  {
    id: 'groups.audit.log.get',
    url: '/organization/{{org_id}}/audit_log/groups',
    version: ENUM.api_version.V4,
  },
  // ip白名单接口
  {
    id: 'organization.ip_setting',
    url: '/organization/{{id}}/ip_setting',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.last_ip_setting',
    url: '/organization/{{id}}/last_ip_setting',
    version: ENUM.api_version.V4,
    // name: '获取最近的ip设置',
  },
  {
    id: 'organization.ip_setting.put',
    url: '/organization/{{id}}/ip_setting',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  // 校验ip名单
  {
    id: 'organization.ip_setting.check',
    url: '/security/ip_validate',
    noApiPrefix: true,
    noVersionPrefix: true,
  },

  {
    id: 'search.content',
    url: '/search/content',
    version: ENUM.api_version.V5,
    // name: '新的通用搜索接口',
  },
  {
    id: 'internal.exchange',
    url: '/internal/exchange',
    // name: '用于拿cookie交互privateToken，搜索接口用',
  },
  {
    id: 'codereview.setting.get',
    url: '/projects/{{id}}/settings/merge_requests/branch',
    version: ENUM.api_version.V4,
  },
  {
    id: 'codereview.setting.getTestName',
    url: '/projects/{{id}}/test_name',
  },
  {
    id: 'codereview.setting.update',
    url: '/projects/{{id}}/code_review/settings',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'migrate.task.add',
    url: '/migrate',
    method: 'post',
  },
  {
    id: 'migrate.task.query',
    url: '/migrate/records',
  },
  {
    id: 'projects.reports.total_commit',
    url: '/projects/{{id}}/reports/total_commit',
    version: ENUM.api_version.V5,
    // name: '代码库报表：完整提交量',
  },
  {
    id: 'projects.reports.detail_commit',
    url: '/projects/{{id}}/reports/detail_commit',
    version: ENUM.api_version.V5,
    // name: '代码库报表：个人提交量明细',
  },
  {
    id: 'projects.reports.total_review_commit',
    url: '/projects/{{id}}/reports/total_review_commit',
    version: ENUM.api_version.V5,
    // name: '代码库报表：cr与commits总览',
  },
  {
    id: 'projects.reports.personal_review_detail',
    url: '/projects/{{id}}/reports/personal_review_detail',
    version: ENUM.api_version.V5,
    // name: '代码库报表：cr个人明细',
  },
  {
    id: 'projects.reports.issue_summary',
    url: '/projects/{{id}}/reports/issue_summary',
    version: ENUM.api_version.V5,
    // name: '代码库报表：评审问题分布统计',
  },
  {
    id: 'projects.reports.review_comment_summary',
    url: '/projects/{{id}}/reports/review_comment_summary',
    version: ENUM.api_version.V5,
    // name: '代码库报表：评审千行代码评论数',
  },
  {
    id: 'department.search.by.name',
    url: '/search/department',
    // name: '根据部门名称搜索部门信息',
  },
  {
    id: 'common.image.upload',
    url: '/common/image?type={{type}}',
    // name: '上传图片',
    method: 'post',
    contentType: 'multipart/form-data',
  },
  // 成员权限相关
  {
    id: 'members.project.get',
    url: '/projects/{{projectId}}/all_members',
    // name: '查看库成员列表',
    version: ENUM.api_version.V4,
  },
  {
    id: 'members.group.get',
    url: '/groups/{{groupId}}/all_members',
    // name: '查看组成员列表',
    version: ENUM.api_version.V4,
  },
  {
    id: 'members.group.post',
    url: '/groups/{{groupId}}/members',
    // name: '管理员添加组成员',
    method: 'post',
    version: ENUM.api_version.V4,
  },
  {
    id: 'members.project.post',
    url: '/projects/{{projectId}}/members',
    // name: '管理员添加库成员',
    method: 'post',
    version: ENUM.api_version.V4,
  },
  {
    id: 'membersV4.group.post',
    url: '/groups/{{groupId}}/membersV4',
    // name: '管理员添加组成员',
    method: 'post',
    version: ENUM.api_version.V4,
  },
  {
    id: 'membersV4.project.post',
    url: '/projects/{{projectId}}/membersV4',
    // name: '管理员添加库成员',
    method: 'post',
    version: ENUM.api_version.V4,
  },
  {
    id: 'members.project.put',
    url: '/projects/{{projectId}}/members/{{userId}}',
    // name: '管理员调整库成员权限',
    method: 'put',
  },
  {
    id: 'membersV4.project.put',
    url: '/projects/{{projectId}}/{{userId}}',
    // name: '管理员调整库成员权限',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  {
    id: 'members.group.put',
    url: '/groups/{{groupId}}/members/{{userId}}',
    // name: '管理员调整组成员权限',
    method: 'put',
  },
  {
    id: 'membersV4.group.put',
    url: '/groups/{{groupId}}/members/{{userId}}',
    // name: '管理员调整组成员权限',
    method: 'put',
    version: ENUM.api_version.V4,
  },
  {
    id: 'members.group.delete',
    url: '/groups/{{groupId}}/members/{{userId}}',
    // name: '管理员删除组成员权限',
    method: 'delete',
  },
  {
    id: 'members.group.delete.post',
    url: '/groups/{{groupId}}/members/{{userId}}',
    // name: '管理员删除组成员权限',
    method: 'delete',
    version: ENUM.api_version.V4,
  },
  {
    id: 'members.group.leave',
    url: '/groups/{{groupId}}/leave',
    // name: '退出组',
    method: 'delete',
  },
  {
    id: 'members.project.delete',
    url: '/projects/{{projectId}}/members/{{userId}}',
    // name: '管理员删除库成员权限',
    method: 'delete',
  },
  {
    id: 'members.project.delete.post',
    url: '/projects/{{projectId}}/{{userId}}',
    // name: '管理员删除库成员权限',
    method: 'post',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.open.deparment.list',
    url: '/projects/{{id}}/open_setting',
    version: ENUM.api_version.V4,
  },
  {
    id: 'department.information.summary',
    url: '/department/summary',
    version: ENUM.api_version.V4,
  },
  {
    id: 'department.projects.information',
    url: '/department/projects',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.attribution_team',
    url: '/department/projects/{{id}}',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.owned',
    url: '/organization/owned',
    version: ENUM.api_version.V4,
  },
  // 设置页面
  {
    id: 'project.size',
    url: '/projects/{{projectId}}/repo_size',
    // name: '库大小',
  },
  {
    id: 'project.gc.get',
    url: '/projects/{{projectId}}/gc',
    // name: '查询库GC',
  },
  {
    id: 'project.gc.post',
    url: '/projects/{{projectId}}/gc?immediately={{immediately}}',
    method: 'post',
    // name: '执行库GC',
  },
  // 分支设置页面
  {
    id: 'projects.protect_branches.search',
    url: '/projects/{{projectId}}/repository/protect_branches/search',
    version: ENUM.api_version.V4,
    // name: '保护分支搜索',
  },
  {
    id: 'projects.default_branches.get',
    url: '/projects/{{projectId}}',
    // name: '获取默认分支',
  },
  {
    id: 'projects.default_branches.put',
    url: '/projects/{{projectId}}',
    method: 'put',
    // name: '更新默认分支',
  },
  {
    id: 'projects.protect_branches.list',
    url: '/projects/{{projectId}}/repository/protect_branches',
    version: ENUM.api_version.V4,
    // name: '保护分支列表',
  },
  {
    id: 'projects.protect_branches.delete',
    url: '/projects/{{projectId}}/repository/protect_branches/{{id}}',
    method: 'delete',
    version: ENUM.api_version.V4,
    // name: '删除保护分支',
  },
  {
    id: 'projects.protect_branches.put',
    url: '/projects/{{projectId}}/repository/protect_branches/{{id}}',
    method: 'put',
    version: ENUM.api_version.V4,
    // name: '修改保护分支',
  },
  {
    id: 'projects.protect_branches.post',
    url: '/projects/{{projectId}}/repository/protect_branches',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '新增保护分支',
  },
  {
    id: 'projects.push_rule.list',
    url: '/projects/{{projectId}}/push_rule',
    version: ENUM.api_version.V4,
    // name: '查推送规则列表',
  },
  {
    id: 'projects.push_rule.delete',
    url: '/projects/{{projectId}}/push_rule/{{id}}',
    method: 'delete',
    version: ENUM.api_version.V4,
    // name: '删除推送规则',
  },
  {
    id: 'projects.push_rule.edit',
    url: '/projects/{{projectId}}/push_rule/{{id}}',
    method: 'put',
    version: ENUM.api_version.V4,
    contentType: 'application/json',
    // name: '修改推送规则',
  },
  {
    id: 'projects.push_rule.create',
    url: '/projects/{{projectId}}/push_rule',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '新增推送规则',
  },
  {
    id: 'projects.push_rule.get',
    url: '/projects/{{projectId}}/push_rule/{{id}}',
    version: ENUM.api_version.V4,
    // name: '根据ID查推送规则',
  },

  // 集成服务设置
  {
    id: 'projects.service.get',
    url: '/projects/{{projectId}}/service/setting',
    version: ENUM.api_version.V4,
    // name: '查询集成服务设置',
  },
  {
    id: 'projects.service.put',
    url: '/projects/{{projectId}}/service/setting',
    method: 'put',
    version: ENUM.api_version.V4,
    // name: '修改集成服务设置',
    noErrorToast: true,
  },
  {
    id: 'projects.service.access',
    url: '/projects/{{projectId}}/service/data/access',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '集成服务开启和关闭记录状态',
  },
  // 自动化检查 checks
  {
    id: 'projects.builds.commits',
    url: '/projects/{{projectId}}/commits/{{commitId}}/builds',
    version: ENUM.api_version.V4,
    // name: '根据commitId查询自动化扫描结果列表',
  },
  {
    id: 'projects.builds.issues',
    url: '/projects/{{projectId}}/builds/{{buildId}}/issues',
    version: ENUM.api_version.V4,
    // name: '根据自动化扫描id，查询问题根据文件汇总的列表',
  },
  {
    id: 'projects.builds.flow',
    url: '/projects/{{projectId}}/build/result/flow',
    version: ENUM.api_version.V4,
    // name: '查询流水线自动化检测任务',
  },
  {
    id: 'projects.builds.rules.count',
    url: '/projects/{{projectId}}/builds/rules/enabled_count',
    version: ENUM.api_version.V4,
    // name: '根据代码库id，查询已开启的扫描规则总数',
  },
  {
    id: 'projects.builds.rules',
    url: '/projects/{{projectId}}/builds/rules',
    version: ENUM.api_version.V4,
    // name: '根据代码库id，查询扫描规则',
  },
  {
    id: 'projects.builds.get.latest.result',
    url: '/projects/{{projectId}}/build/result/branch/{{branchName}}',
    version: ENUM.api_version.V4,
    // name: '根据代码库id和分支，查询最近扫描结果',
    noErrorToast: true,
  },
  {
    id: 'projects.pinpoint.new',
    url: '/projects/{{projectId}}/flow/pipeline/pinpoint/new',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '开启源伞检测流水线',
  },
  {
    id: 'projects.builds.get.issue.count',
    url: '/projects/{{projectId}}/build/issue/count/{{build_result_id}}',
    version: ENUM.api_version.V4,
    // name: '根据build_result_id获取issue总数',
    noErrorToast: true,
  },
  {
    id: 'projects.builds.list.issues',
    url: '/projects/{{projectId}}/build/issue/list/{{buildResultId}}',
    version: ENUM.api_version.V4,
    // name: '根据代码库id和build_result_id，查询issue结果',
  },
  {
    id: 'projects.builds.issues.batch',
    url: '/projects/{{projectId}}/builds/{{buildId}}/issues/batch',
    version: ENUM.api_version.V4,
    // name: '根据issue id批量查询详情',
  },
  {
    id: 'projects.builds.single.detail',
    url: '/security/sensitive/{{org_id}}/sensitive_info',
    version: ENUM.api_version.V4,
    // name: '获取敏感信息详情',
  },
  {
    id: 'projects.builds.single.activity',
    url: '/security/sensitive/issue_activity',
    version: ENUM.api_version.V4,
    // name: '获取敏感信息动态',
  },
  {
    id: 'projects.builds.single.dependency.list',
    url: '/projects/{{project_id}}/builds/{{build_id}}/issues/dependency/{{parent_issue_id}}',
    version: ENUM.api_version.V4,
    // name: '获取依赖下的所有风险issue',
  },
  {
    id: 'projects.builds.issue.list',
    url: '/projects/{{project_id}}/build/issue/list/{{build_id}}',
    version: ENUM.api_version.V4,
    // name: '获取build下的所有风险issue',
  },
  {
    id: 'projects.build.single.log',
    url: '/projects/{{project_id}}/build/result/build/{{build_id}}',
    version: ENUM.api_version.V4,
    // name: '失败构建日志查询',
  },
  {
    id: 'projects.builds.manual',
    url: '/projects/{{projectId}}/build/manual/scan?branch_name={{branchName}}&user_id={{userId}}&after_sha={{commitId}}&build_task={{buildTask}}',
    version: ENUM.api_version.V4,
    method: 'post',
    // name: '开启扫描或者重试',
  },
  {
    id: 'projects.builds.manual.retry',
    url: '/projects/{{projectId}}/build/manual/reattempt',
    version: ENUM.api_version.V4,
    // name: '开启扫描或者重试',
  },
  {
    id: 'project.verify',
    url: '/project/verify',
    version: ENUM.api_version.V4,
    // name: '代码库名、路径重复检验',
    noErrorToast: true,
  },
  {
    id: 'project.import.verify',
    url: '/projects/verify/create?create_parent_path=true',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '导入库创建库校验（路径含组）',
    noErrorToast: true,
  },
  {
    id: 'project.webIde',
    url: '/projects/{{projectId}}/application/endpoint',
    version: ENUM.api_version.V4,
    // name: '获取webIDE融合入口',
    headers: {
      'need-login-token': true,
    },
  },
  {
    id: 'organization.risk.sensitive_behavior',
    url: '/security/sensitive/{{org_id}}/sensitive_behavior/composite_sensitive_operation',
    version: ENUM.api_version.V4,
    // name: '查询企业敏感行为',
    headers: {
      'need-login-token': true,
    },
  },
  {
    id: 'organization.risk.sensitive_behavior_detail',
    url: '/security/sensitive/sensitive_behavior/sensitive_operation_detail',
    version: ENUM.api_version.V4,
    // name: '查询企业敏感细节',
    headers: {
      'need-login-token': true,
    },
  },
  {
    id: 'organization.sensitive.info_report.overview',
    url: '/security/sensitive/{{org_id}}/info_report/overview',
    version: ENUM.api_version.V4,
    // name: '敏感信息报表-查询概要信息',
    headers: {
      'need-login-token': true,
    },
  },
  {
    id: 'organization.sensitive.info_report.overview.count',
    url: '/organization/{{org_id}}/integration/service/count',
    version: ENUM.api_version.V4,
    // name: '敏感信息报表-查询概要信息-即时查询开启、未开启的数量',
  },
  {
    id: 'organization.sensitive.info_report.overview_projects',
    url: '/organization/{{org_id}}/integration/service/list',
    version: ENUM.api_version.V4,
    // name: '敏感信息报表-查询库，指定参数可以查未开启/开启的库',
  },
  {
    id: 'organization.sensitive.info_report.overview_disable_projects',
    url: '/security/sensitive/{{org_id}}/info_report/overview_disable_projects',
    version: ENUM.api_version.V4,
    // name: '敏感信息报表-查询概要未开启代码库信息',
    headers: {
      'need-login-token': true,
    },
  },
  {
    id: 'organization.sensitive.info_report.repo_list',
    url: '/security/sensitive/{{org_id}}/info_report/repo_list',
    version: ENUM.api_version.V4,
    // name: '敏感信息报表-查询代码库分页列表',
    headers: {
      'need-login-token': true,
    },
  },
  {
    id: 'organization.sensitive.info_report.user_list',
    url: '/security/sensitive/{{org_id}}/info_report/user_list',
    version: ENUM.api_version.V4,
    // name: '敏感信息报表-查询用户分页列表',
    headers: {
      'need-login-token': true,
    },
  },
  {
    id: 'groups.mine.list',
    url: '/groups/my',
    version: ENUM.api_version.V4,
    // name: '我参与的组列表',
  },
  {
    id: 'groups.all.list',
    url: '/groups/all',
    version: ENUM.api_version.V4,
    // name: '所有的组列表',
  },
  {
    id: 'group.subgroups.list',
    url: '/groups/{{id}}/subgroups',
    version: ENUM.api_version.V4,
    // name: '根据id获取子组列表',
  },
  {
    id: 'group.detail',
    url: '/groups/{{id}}?contain_sub_projects={{contain_sub_projects}}',
    // name: '根据id获取组信息',
  },
  {
    id: 'group.detail.list',
    url: '/groups/{{id}}/groups_and_projects',
    version: ENUM.api_version.V4,
    // name: '组详情页获取库和组列表',
  },
  {
    id: 'group.verify',
    url: '/group/verify',
    version: ENUM.api_version.V4,
    // name: '代码组名称、路径重复检验',
    noErrorToast: true,
  },
  {
    id: 'groups.list.all.authorized',
    url: '/groups/all/authorized',
    version: ENUM.api_version.V4,
    // name: '查询我有权限（开发者及以上）的所有组',
  },
  {
    id: 'project.remove.with_reason',
    url: '/projects/{{id}}/remove',
    method: 'post',
    // name: '删除库原因必填',
  },
  {
    id: 'groups.remove.with_reason',
    url: '/groups/{{id}}/remove',
    method: 'post',
    // name: '删除组原因必填',
  },
  {
    id: 'groups.transfer',
    url: '/groups/{{source_id}}/transfer/{{target_id}}',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '转移组',
  },
  {
    id: 'groups.access.create_group_project',
    url: '/groups/{{groupId}}/settings/my',
    version: ENUM.api_version.V4,
    // name: '组详情页获取是否可以创建子组和库',
  },
  {
    id: 'groups.verify.can_transfer',
    url: '/groups/can_transfer',
    version: ENUM.api_version.V4,
    // name: '转移代码组时校验合法性',
    noErrorToast: true,
  },
  {
    id: 'project.setting.visibility',
    url: '/projects/{{id}}/limits/update_visibility',
    version: ENUM.api_version.V4,
    // name: '库设置获取可见性',
  },
  {
    id: 'groups.setting.visibility',
    url: '/groups/{{id}}/limits/update_visibility',
    version: ENUM.api_version.V4,
    // name: '判断组更新的可见性限制',
  },
  {
    id: 'project.setting.transfer',
    url: '/projects/{{projectId}}/transfer/{{groupId}}',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '转移代码库到组',
  },
  {
    id: 'organization.list',
    url: '/organization',
    version: ENUM.api_version.V4,
    // name: '查询角色为Owner或Admin的企业列表',
  },
  {
    id: 'organization.switch',
    url: '/organization/switch',
    method: 'put',
    version: ENUM.api_version.V4,
    // name: '切换企业',
  },
  {
    id: 'upgrade.projects.get',
    url: '/upgrade/aliyun/projects',
    // name: '查询可升级代码库列表',
  },
  {
    id: 'upgrade.projects.post',
    url: '/upgrade/aliyun/projects',
    method: 'post',
    // name: '提交升级任务',
  },
  {
    id: 'upgrade.records.last',
    url: '/upgrade/aliyun/upgrade_repos',
    // name: '查询最近一次升级的代码库列表',
  },
  {
    id: 'upgrade.records.all',
    url: '/upgrade/aliyun/all_upgrade_repos',
    // name: '查询历史升级代码库列表',
  },
  {
    id: 'project.file.readme.template',
    url: '/projects/init/readme',
    // name: '获取新建readme模板',
  },
  {
    id: 'project.file.ignore.lang',
    url: '/projects/gitignore_types',
    // name: '获取新建ignore支持的语言',
  },
  {
    id: 'project.file.ignore.template',
    url: '/projects/gitignore_template',
    // name: '获取指定语言的ignore模板',
  },
  {
    id: 'user.https.account',
    url: '/user/https/account',
    // name: 'HTTPS克隆账号信息',
  },
  {
    id: 'merge_request.reviewer_recommend.get',
    url: '/projects/{{projectId}}/merge_requests/reviewer_recommend',
    // name: '推荐评审人',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.admin.sync.enable',
    url: '/organization/{{orgId}}/admin/sync/enable',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '更新是否开启同步管理员',
  },
  {
    id: 'organization.admin_setting',
    url: '/organization/{{orgId}}/admin_setting',
    version: ENUM.api_version.V4,
    // name: '获取是否开启同步管理员',
  },
  {
    id: 'commit.cherry_pick',
    url: '/projects/{{projectId}}/repository/commits/{{sha}}/cherry_pick',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: 'commit直接合并到指定分支',
  },
  {
    id: 'commit.options_branch_name',
    url: '/projects/{{projectId}}/repository/commits/{{sha}}/options_branch_name',
    version: ENUM.api_version.V4,
    // name: 'cherry-pick/revert获取新的分支名称',
  },
  {
    id: 'commit.revert',
    url: '/projects/{{projectId}}/repository/commits/{{sha}}/revert',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: 'commit从指定分支revert',
  },
  {
    id: 'organization.grant_behavior.list',
    url: '/organization/grant_behavior/{{orgId}}/list',
    version: ENUM.api_version.V4,
    // name: '获取敏感行为监测白名单',
  },
  {
    id: 'organization.grant_behavior.new',
    url: '/organization/grant_behavior/{{orgId}}/new',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '新增敏感行为监测白名单',
  },
  {
    id: 'organization.grant_behavior.update',
    url: '/organization/grant_behavior/{{orgId}}/save',
    method: 'put',
    version: ENUM.api_version.V4,
    // name: '更新敏感行为监测白名单',
  },
  {
    id: 'organization.grant_behavior.delete',
    url: '/organization/grant_behavior/{{orgId}}/delete?uuid={{uuid}}',
    method: 'delete',
    version: ENUM.api_version.V4,
    // name: '删除敏感行为监测白名单',
  },
  {
    id: 'organization.ip.cancel',
    url: '/organization/ip/cancel',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '关闭 IP 白名单验证',
  },
  {
    id: 'organization.ip.send_cancel_token',
    url: '/organization/ip/send_cancel_token',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '关闭 IP 白名单验证获取验证码',
  },
  {
    id: 'project.webhook.history.list',
    url: '/projects/{{projectId}}/hooks/history',
    // name: 'webhook发送历史',
  },
  {
    id: 'project.webhook.history.retry',
    url: '/projects/{{projectId}}/hooks/retry?history_id={{history_id}}',
    method: 'post',
    // name: 'webhook失败的历史记录重试',
  },
  {
    id: 'project.build.issue.ignore',
    url: '/projects/{{projectId}}/build/issue/status/ignore',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '忽略issue',
  },
  {
    id: 'project.build.issue.reopen',
    url: '/projects/{{projectId}}/build/issue/status/reopen',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '重开issue',
  },
  {
    id: 'project.reports.total_commit',
    url: '/api/digital/v3/projects/{{projectId}}/reports/total_commit',
    // name: '总体提交',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.reports.detail_commit',
    url: '/api/digital/v3/projects/{{projectId}}/reports/detail_commit',
    // name: '用户提交',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.reports.total_review_commit',
    url: '/api/digital/v3/projects/{{projectId}}/reports/total_review_commit',
    // name: '总体评审',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.reports.personal_review_detail',
    url: '/api/digital/v3/projects/{{projectId}}/reports/personal_review_detail',
    // name: '用户提交',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.reports.review_comment_summary',
    url: '/api/digital/v3/projects/{{projectId}}/reports/review_comment_summary',
    // name: '评论统计',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.reports.issue_summary',
    url: '/api/digital/v3/projects/{{projectId}}/reports/comment_summary',
    // name: '评审问题分布统计',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.lfs.info.get',
    url: '/projects/{{projectId}}/lfs/info',
    version: ENUM.api_version.V4,
    // name: '大文件存储信息',
  },
  {
    id: 'project.lfs.list.get',
    url: '/projects/{{projectId}}/lfs/file',
    version: ENUM.api_version.V4,
    // name: '大文件存储文件列表',
  },
  {
    id: 'project.lfs.list.deleted_file',
    url: '/projects/{{projectId}}/lfs/deleted_file',
    version: ENUM.api_version.V4,
    // name: '大文件存储文件删除列表',
  },
  {
    id: 'project.lfs.single.download',
    url: '/projects/{{projectId}}/lfs/{{lfsId}}/download',
    version: ENUM.api_version.V4,
    // name: '大文件存储文件下载',
  },
  {
    id: 'project.lfs.single.delete',
    url: '/projects/{{projectId}}/lfs/{{lfsId}}',
    version: ENUM.api_version.V4,
    method: 'delete',
    // name: '大文件存储文件下载',
  },
  {
    id: 'project.lfs.batch.delete',
    url: '/projects/{{projectId}}/lfs/batch/delete',
    version: ENUM.api_version.V4,
    method: 'post',
    // name: '大文件批量删除',
  },
  {
    id: 'projects.general_info_and_blobs',
    // name: '获取文件类型以及内容',
    url: '/projects/{{projectId}}/repository/blobs/{{ref}}/general_info_and_blobs',
    version: ENUM.api_version.V4,
    noErrorToast: true,
  },
  {
    id: 'project.recent.push',
    url: '/users/activities/projects/{{repoId}}/recent_push',
    // name: '最近的一次提交',
  },
  {
    id: 'organization.trashes.list',
    url: '/trashes',
    version: ENUM.api_version.V4,
    // name: '回收站',
  },
  {
    id: 'project.trashes.restore',
    url: '/projects/{{id}}/restore?path={{path}}&&name={{name}}',
    method: 'put',
    // name: '还原到指定路径',
  },
  {
    id: 'group.trashes.restore',
    url: '/groups/{{id}}/restore?path={{path}}&&name={{name}}',
    method: 'put',
    // name: '还原到指定路径',
  },
  {
    id: 'yundou.beebot.config',
    // name: '获取云豆配置信息',
    url: '/portal/beebot/config',
    noApiPrefix: true,
    noVersionPrefix: true,
    noErrorToast: true,
  },
  {
    id: 'merge_request.comment.config',
    // name: '代码评审评论配置',
    url: '/portal/mr/comment_config',
    noApiPrefix: true,
    noVersionPrefix: true,
    noErrorToast: true,
  },
  {
    id: 'project.file.ls.ranges',
    url: '/api/ai/v1/{{repoId}}/ls/ranges',
    // name: '获取文件应该高亮的词',
    noErrorToast: true,
    noVersionPrefix: true,
    noApiPrefix: true,
  },
  {
    id: 'project.file.ls.search',
    url: '/api/ai/v1/{{repoId}}/ls/search',
    // name: '获取文件某词定义和引用',
    noVersionPrefix: true,
    noApiPrefix: true,
    noErrorToast: true,
  },
  {
    id: 'project.file.ls.snippets',
    url: '/projects/{{repoId}}/repository/snippets/blobs',
    method: 'post',
    // name: '获取文件某词所在行的片段',
    contentType: 'application/json',
    noErrorToast: true,
  },
  {
    id: 'project.file.ls.scope_ranges',
    url: '/api/ai/v1/{{repoId}}/ls/scope_ranges',
    method: 'post',
    // name: 'MR 获取文件应该高亮的词',
    noErrorToast: true,
    contentType: 'application/json',
    noVersionPrefix: true,
    noApiPrefix: true,
  },
  {
    id: 'project.mr.ahead_behind',
    url: '/projects/{{repoId}}/repository/commits/compare/ahead_behind',
    version: ENUM.api_version.V4,
    // name: '获取MR其他信息',
  },
  {
    id: 'project.overview',
    url: '/projects/{{repoId}}/overview',
    // name: '获取库tab的各种数量',
    noErrorToast: true,
  },
  {
    id: 'org.service.get',
    url: '/organization/{{orgId}}/integration/service/get',
    version: ENUM.api_version.V4,
    // name: '获取企业服务设置',
  },
  {
    id: 'org.service.close',
    url: '/organization/{{orgId}}/integration/service/close',
    version: ENUM.api_version.V4,
    // name: '一键关闭',
  },
  {
    id: 'org.service.open',
    url: '/organization/{{orgId}}/integration/service/open',
    version: ENUM.api_version.V4,
    // name: '一键开启敏感信息扫描，同时默认设置为弱卡控',
  },
  {
    id: 'org.service.update',
    url: '/organization/{{orgId}}/integration/service/update',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '更改企业设置的强卡控设置',
  },
  {
    id: 'org.service.batchopen',
    url: '/organization/{{orgId}}/integration/service/batchAdd?integration_service={{integration_service}}',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '批量新增库进行敏感信息扫描',
  },
  {
    id: 'project.clone_download',
    url: '/projects/{{projectId}}/limits/clone_download',
    version: ENUM.api_version.V4,
    // name: '获取克隆下载的设置',
  },
  {
    id: 'project.pipelines',
    url: '/portal/api/v1/pipeline/flow/{{projectId}}',
    // name: '获取流水线',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'project.pipelines.branch',
    url: '/portal/api/v1/pipeline/flow/{{projectId}}/branch',
    // name: '获取流水线-带分支',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'org.risk.overview.score.calculate',
    url: '/api/digital/v3/organization/{{org_id}}/security/calculateScore',
    // name: '计算企业安全评分',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'org.risk.overview.score.get',
    url: '/api/digital/v3/organization/{{org_id}}/security/score/get',
    // name: '获取企业安全评分',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'org.risk.overview.task.count',
    url: '/organization/{{org_id}}/get/count/issue/project?task_name={{task_name}}',
    // name: '获取存在敏感信息泄露的库的数量',
    version: ENUM.api_version.V4,
  },
  {
    id: 'org.risk.overview.operation.count',
    url: '/security/sensitive/{{org_id}}/sensitive_behavior/composite/sensitive/operation/count',
    // name: '查询成员行为安全的记录数',
    version: ENUM.api_version.V4,
  },
  {
    id: 'org.risk.overview.trashes.count',
    url: '/trashes/{{org_id}}/count',
    // name: '查询即将自动删除的代码库数',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mr.merge_base',
    url: '/projects/{{repoId}}/merge_request/{{mrId}}/merge_base',
    // name: '查询mr的merge base信息',
    version: ENUM.api_version.V4,
    noErrorToast: true,
  },
  {
    id: 'org.backup.spaceInfo',
    url: '/organization/{{org_id}}/backup/spaceInfo',
    // name: '备份空间信息查询接口',
    version: ENUM.api_version.V4,
  },
  {
    id: 'org.backup.authorize',
    url: '/organization/{{org_id}}/backup/authorize',
    // name: '备份空间授权接口(前端回调调用)',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.backup.space.meta',
    url: '/organization/{{org_id}}/backup/space/meta',
    // name: '备份空间元数据查询',
    version: ENUM.api_version.V4,
  },
  {
    id: 'org.backup.removeAuth',
    url: '/organization/{{org_id}}/backup/removeAuth',
    // name: '备份空间解除授权',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.backup.sapce.create',
    url: '/organization/{{org_id}}/backup/space/create',
    // name: '创建备份空间间解除授权',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.backup.space.updateSettings',
    url: '/organization/{{org_id}}/backup/space/updateSettings',
    // name: '更新备份空间 ',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.backup.manual',
    url: '/organization/{{org_id}}/backup/manual',
    // name: '手工备份',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'repo.backup.info',
    url: '/project/{{projectId}}/backup/info',
    // name: '代码库备份信息查询服务',
    version: ENUM.api_version.V4,
  },
  {
    id: 'org.backup.projectBackupList',
    url: '/organization/{{org_id}}/backup/projectBackupList',
    // name: '备份详情查询服务',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.repo.prehook.test',
    url: '/organization/{{orgId}}/push_rule/third_party/test?url={{url}}',
    method: 'post',
    version: ENUM.api_version.V4,
    // name: '企业设置测试prehooks',
  },
  {
    id: 'org.cryptos.authorize',
    url: '/organization/{{org_id}}/cryptos/authorize',
    // name: '加密授权',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.cryptos.removeAuthVerify',
    url: '/organization/{{org_id}}/cryptos/removeAuthVerify',
    // name: '取消加密授权前置校验',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.cryptos.removeAuth',
    url: '/organization/{{org_id}}/cryptos/removeAuth',
    // name: '取消加密授权',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.cryptos.crypto_settings.get',
    url: '/organization/{{org_id}}/crypto_settings',
    // name: '查询加密设置',
    version: ENUM.api_version.V4,
  },
  {
    id: 'org.cryptos.crypto_settings.put',
    url: '/organization/{{org_id}}/crypto_settings',
    // name: '修改加密设置',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'org.cryptos.list',
    url: '/organization/{{org_id}}/cryptos',
    // name: '查询加密列表',
    version: ENUM.api_version.V4,
    noErrorToast: true,
  },
  {
    id: 'org.cryptos.single.create',
    url: '/organization/{{org_id}}/cryptos',
    // name: '创建加密密钥',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.cryptos.single.update',
    url: '/organization/{{org_id}}/cryptos/{{id}}',
    // name: '更新加密密钥',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'org.cryptos.single.delete',
    url: '/organization/{{org_id}}/cryptos/{{id}}',
    // name: '删除加密密钥',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  {
    id: 'org.cryptos.single.verify_delete',
    url: '/organization/{{org_id}}/cryptos/{{id}}/verify_delete',
    // name: '删除加密密钥前置校验',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'org.cryptos.single.projects',
    url: '/organization/{{org_id}}/cryptos/{{id}}/projects',
    // name: '使用该密钥的库',
    version: ENUM.api_version.V4,
  },
  {
    id: 'org.cryptos.kms.keys',
    url: '/organization/{{org_id}}/cryptos/providers/kms/keys',
    // name: 'KMS 密钥查询（目前仅支持服务密钥）',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.single.crypto.get',
    url: '/projects/{{repoId}}/crypto',
    // name: '仓库加密设置查询',
    version: ENUM.api_version.V4,
  },
  {
    id: 'group.encrypted_projects.list',
    url: '/groups/{{groupId}}/encrypted_projects',
    // name: '组下加密库列表查询',
    version: ENUM.api_version.V4,
  },
  {
    id: 'projects.single.crypto.put',
    url: '/projects/{{repoId}}/crypto',
    // name: '仓库加密设置修改',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'user.kms.check',
    url: '/user/business_status/kms',
    // name: '检测当前用户的kms状态',
    version: ENUM.api_version.V4,
  },
  {
    id: 'user.getLastWorkspace',
    url: '/portal/user/last_workspace',
    // name: '查询是否切换企业或者session过期了',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'group.projects',
    url: '/groups/{{id}}/projects',
    // name: '查询组下库',
  },
  {
    id: 'project.security.issue.patch',
    url: '/projects/{{project_id}}/builds/{{build_id}}/issues/patch/{{issue_id}}',
    // name: '查询issue的修复方案',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.security.issue.repair',
    url: '/projects/{{project_id}}/builds/{{build_id}}/issues/repair/{{issue_id}}',
    // name: '创建issue的修复方案分支',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'organization.getOrgplan',
    url: '/organization/getOrgplan',
    // name: '获取企业套餐类型',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mirror.settings',
    url: '/projects/{{projectId}}/mirror/settings',
    // name: '查询仓库同步的设置',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.orgplan',
    url: '/organization/getOrgplan',
    // name: '获取企业当前套餐',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mirror.settings.put',
    url: '/projects/{{projectId}}/mirror/settings',
    // name: '更新仓库同步的设置',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'project.mirror.settings.authorized.put',
    url: '/projects/{{projectId}}/mirror/settings/authorized',
    // name: '解除仓库同步授权设置',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'project.mirror.sync_records',
    url: '/projects/{{projectId}}/mirror/sync_records',
    // name: '查询历史仓库同步记录列表',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mirror.last_mirror_sync_record',
    url: '/projects/{{projectId}}/mirror/last_mirror_sync_record',
    // name: '查询仓库最新的一次同步记录',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization.advance',
    url: '/organization/{{orgId}}/advance/feature',
    // name: '计费弹窗是否出现',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.mirror',
    url: '/projects/{{projectId}}/mirror',
    // name: '触发仓库同步',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization.buyOrgPlan',
    url: '/organization/{{orgId}}/buyOrgPlan',
    // name: '计费试用下单接口',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization.settings.audit.sls.getAuthStatus',
    url: '/organization/{{organizationId}}/sls/getAuthorizationStatus',
    // name: '获取sls授权状态',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization.settings.audit.sls.authorize',
    url: '/organization/{{organizationId}}/sls/authorize',
    // name: 'sls授权',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization.settings.audit.sls.removeAuth',
    url: '/organization/{{organizationId}}/sls/removeAuth',
    // name: 'sls解除授权',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'project_blobs_lfs_download_href',
    url: '/projects/{{projectId}}/lfs/oid/download?oid={{oid}}',
    // name: '获取oss下载链接',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization_setting_risk_watermark_get',
    url: '/organization/{{projectId}}/watermark_setting',
    // name: '查询企业水印设置',
    version: ENUM.api_version.V4,
  },
  {
    id: 'organization_setting_risk_watermark_post',
    url: '/organization/{{projectId}}/watermark_setting',
    // name: '设置企业水印',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'organization_setting_risk_gen_watermark',
    url: '/organization/gen/watermark',
    // name: '查询企业水印图片信息',
    version: ENUM.api_version.V4,
  },
  {
    id: 'search_codeup_search',
    url: '/api/search/v3/{{type}}',
    // name: 'code代码搜索接口、 repo代码仓库搜索接口、mr代码评审搜索接口',
    noApiPrefix: true,
    noVersionPrefix: true,
    method: 'post',
  },
  {
    id: 'search_root_codeup_preview',
    url: '/api/search/v3/code_preview',
    // name: '代码搜索预览接口',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'search_root_codeup_commit',
    url: '/api/search/v3/commit',
    // name: '代码提交搜索接口',
    noApiPrefix: true,
    noVersionPrefix: true,
    method: 'post',
  },
  {
    id: 'search_is_gray',
    url: '/api/v4/gray/is_gray',
    // name: '灰度企业代码搜索',
    version: ENUM.api_version.V4,
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  {
    id: 'search_root_codeup_filter_statistics',
    url: '/api/search/v3/count?type={{type}}',
    // name: '代码提交筛选count统计',
    noApiPrefix: true,
    noVersionPrefix: true,
    method: 'post',
  },
  {
    id: 'search_root_codeup_aggregate_num',
    url: '/api/search/v3/aggregate?group_by={{group_by}}&type={{type}}',
    // name: '代码提交筛选分组统计',
    noApiPrefix: true,
    noVersionPrefix: true,
    method: 'post',
  },
  {
    id: 'project_commit_info_media_id_herf',
    url: '/devops/project/task/query?uniqueId={{idList}}',
    // name: '代码中代码提交关联到工作项',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.resource.limit.privilege',
    url: '/projects/{{projectId}}/resourceLimit/privilege',
    version: ENUM.api_version.V4,
    // name: 'lfs判断是否特权企业，特权企业的lfs容量不限',
  },

  /* 个人设置相关接口，迁移自UserProfile start */
  {
    id: 'modifyUserHttpsUsername',
    url: '/user/https/account/username',
    method: 'put',
  },
  {
    id: 'setHttpsCloneSecret',
    url: '/user/https/account/secret',
    method: 'post',
  },
  {
    id: 'resetHttpsCloneSecret',
    url: '/user/https/account/secret',
    method: 'put',
  },
  {
    id: 'sendResetHttpsCloneSecretToken',
    url: '/user/https/account/send_reset_token',
    method: 'post',
  },
  {
    id: 'verifyUsername',
    url: '/user/https/account/username/verify',
  },
  {
    id: 'token.scope.get',
    url: '/oauth/scopes',
    version: ENUM.api_version.V4,
  },
  {
    id: 'token.single.post',
    url: '/oauth/personal_access_token',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'token.list.get',
    url: '/oauth/personal_access_tokens',
    version: ENUM.api_version.V4,
  },
  {
    id: 'token.single.delete',
    url: '/oauth/personal_access_token/{{id}}',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  {
    id: 'token.single.put',
    url: '/oauth/personal_access_token/{{id}}',
    version: ENUM.api_version.V4,
    method: 'put',
  },
  {
    id: 'gpg.list',
    url: '/user/gpg_keys',
    version: ENUM.api_version.V4,
  },
  {
    id: 'gpg.post',
    url: '/user/gpg_keys',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'gpg.delete',
    url: '/user/gpg_keys/{{id}}?revoke={{revoke}}',
    version: ENUM.api_version.V4,
    method: 'delete',
  },
  /* 个人设置相关接口，迁移自UserProfile END */
  // 查询仓库数量
  {
    id: 'projects.counts',
    url: '/projects/counts',
  },
  // 查询搜索记录
  {
    id: 'search.user_search_history',
    url: '/api/search/v3/user_search_history',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  // 新增搜索记录
  {
    id: 'search.add_search_history',
    url: '/api/search/v3/add_search_history',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  // 清空搜索记录
  {
    id: 'search.clear_user_search_history',
    url: '/api/search/v3/clear_user_search_history',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  // DSL高级搜索
  {
    id: 'search.dsl_query',
    url: '/api/search/v3/dsl_query',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
    noErrorToast: true,
  },
  // DSL统计接口
  {
    id: 'search.dsl_count',
    url: '/api/search/v3/dsl_count',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  // 清空搜索次数
  {
    id: 'search.clear_search_count',
    url: '/api/search/v3/user_statistic/clear_search_count',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  // 提交用户反馈
  {
    id: 'search.user_feed_back',
    url: '/api/search/v3/user_feed_back',
    method: 'post',
    noApiPrefix: true,
    noVersionPrefix: true,
  },
  // 查询应用详情接口
  {
    id: 'application.get',
    url: '/application/{{app_id}}',
    version: ENUM.api_version.V4,
  },
  // 查询指定应用的用户授权记录接口
  {
    id: 'authorize.get',
    url: '/oauth/{{app_id}}',
    version: ENUM.api_version.V4,
  },
  // OAuth 用户授权
  {
    id: 'auth.authorize',
    url: '/oauth/authorize',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  // OAuth 用户取消授权
  {
    id: 'auth.cancel',
    url: '/oauth/cancel',
    version: ENUM.api_version.V4,
    method: 'post',
  },
  {
    id: 'mr.user_feed_back',
    url: '/user/feed_back',
    method: 'post',
    version: ENUM.api_version.V4,
  },
  // 专有云环境使用codeup自定义的成员搜索接口
  {
    id: 'memberSearchVpc',
    url: '/organization/{{id}}/memberSearch',
    version: ENUM.api_version.V4,
  },
  {
    id: 'project.repo.prehook.test',
    url: '/projects/{{projectId}}/push_rule/third_party/test?url={{url}}',
    method: 'post',
    version: ENUM.api_version.V4,
    name: '企业设置测试prehooks',
  },
];

export default codeupApimap;
